package com.webmall.servlet.cart;

import com.webmall.service.webmall_CartDao;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/cartShopNumUpdate")
public class cartShopNumUpdate extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        request.setCharacterEncoding("UTF-8");
        response.setContentType("text/html;charset=utf-8");

        webmall_CartDao.updateCart(Integer.valueOf(request.getParameter("cartid")),
                Integer.valueOf(request.getParameter("count")));

        



    }
}
